package com.snec.oauth2.oauth.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author 猪猪
 * @since 2022/8/9
 * 很多权限配置子模块
 */
//@Data
@ConfigurationProperties(prefix = "snec.oauth2", ignoreInvalidFields = true)

//@Component                                       //标记本类为一个Bean，可以使用@Autowried注入
//@PropertySource("classpath:test.properties")     //SpringBoot 1.5以上版本取消 @ConfigurationProperties中location属性，这里用@PropertySource代替
//@ConfigurationProperties(prefix = "snec.oauth2")
public class PearlOauth2Properties {
//    private String clientId;
//    private String clientSecret;
    /**
     * 客户端配置
     */
    private ClientProperties client= new  ClientProperties();

    public ClientProperties getClient() {
        return client;
    }

    public void setClient(ClientProperties client) {
        this.client = client;
    }
}


